home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / MultiSession 1.04 Source / Core 27⁄June⁄1993 / CSaveBeforeClosing.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-09  |  564 b   |  27 lines  |  [TEXT/KAHL]

  1. /* CSaveBeforeClosing.h */
  2.  
  3. #pragma once
  4.  
  5. #include "CModalDialog.h"
  6. #include "CSimpleButton.h"
  7.  
  8. /* result codes */
  9. #define Yes_Save (-3)
  10. #define No_Save (-2)
  11. #define Cancel_Close (-1)
  12.  
  13. struct    CSaveBeforeClosingWindow    :    CModalDialog
  14.     {
  15.         short        SaveBeforeClosing(PString Name);
  16.     };
  17.  
  18. struct    CAskButton    :    CSimpleButton
  19.     {
  20.         MyBoolean*    AnswerLoc;
  21.  
  22.         void            IAskButton(LongPoint Start, LongPoint Extent, Handle NameString, char Key,
  23.                                 short Modifiers, CWindow* TheWindow, CEnclosure* TheEnclosure,
  24.                                 MyBoolean* TheAnswerLoc);
  25.         MyBoolean    DoThang(void);
  26.     };
  27.